package com.cowin.sys.dao;

import com.cowin.base.Mapper;
import com.cowin.sys.model.TmBasSortRule;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TmBasSortRuleMapper extends Mapper<TmBasSortRule> {

    /**
     * 功能描述: sortRuleModule 查询路由规则<br>
     *
     * @param sortRuleModule
     * @return: TmBasSortRule集合
     * @since: 1.0.0
     * @Author:yuchao
     * @Date: 2019/11/25 14:27
     */
    @Select("SELECT * FROM TM_BAS_SORT_RULE where SORT_RULE_MODE =#{sortRuleType} and enabled='1' ORDER BY PRIORITY_ID asc")
    List<TmBasSortRule> findSortRuleByModule(String sortRuleModule);}